{"ModOnStart":{"type":"checkbox","anchors":[],"events":{"OnClick":[{"~":"GetValue","object":"ModOnStart","name":"selected","return":[{"~":"IfEquals","first":"$return","second":1,"return":{"Equals":[{"~":"SetValue","object":"HostsRules","name":"enabled","value":1}],"NotEquals":[{"~":"SetValue","object":"HostsRules","name":"enabled","value":0}]}}]}]},"text":"Change hosts file on start:","w":245,"h":25,"x":5,"y":5},"HostsRules":{"type":"textarea","anchors":{"right":5,"left":5},"events":[],"text":"127.0.0.1 facebook.com\n127.0.0.1 google.com","w":200,"h":250,"x":6,"y":30,"disabled":true},"Apply":{"type":"button","anchors":{"right":5},"events":{"OnClick":[{"~":"SetConfigData","configname":"HostsEditorPlugin","dataname":"rules","value":"@HostsRules"},{"~":"GetValue","object":"ModOnStart","name":"selected","return":[{"~":"SetConfigData","configname":"HostsEditorPlugin","dataname":"auto","value":"$return"}]},{"~":"RandStr","length":"25","alphabet":"qwertyuiopasdfghjklzxcvbnm1234567890","return":[{"~":"SetConfigData","configname":"HostsEditorPlugin","dataname":"uniq","value":"$return"}]},{"~":"Message","text":"Config saved and applied!"}]},"text":"Apply Settings","w":120,"h":32,"x":502,"y":285},"load":{"type":"method","nonvisual":true,"events":{"OnExecute":[{"~":"GetConfigData","configname":"HostsEditorPlugin","dataname":"rules","return":[{"~":"SetValue","object":"HostsRules","name":"text","value":"$return"}]}]},"x":635,"y":5,"autostart":true}}